package com.anpy.common.service.exception;


/**
 * <pre>
 *
 * </pre>
 *
 * @author sprainkle
 * @date 2019/5/2
 */
public interface CommonExceptionAssert extends IResponseException, Assert {
    @Override
    default BusinessException newException(Object... args){
        return new BusinessException(args);
    }

    @Override
    default BusinessException newException(){
        return new BusinessException();
    }

    @Override
    default BusinessException newException(String message){
        return new BusinessException(message);
    }

    @Override
    default BusinessException newException(Throwable t, Object... args) {
        return null;
    }


}
